class remoteexec (
  $name,
  $user,
  $key,
  $ensure = 'present',
  $type   = 'ssh-rsa',
) {
  ssh_authorized_key { $name:
    ensure => $ensure,
    user   => $user,
    type   => $type,
    key    => $key,
  }
}
